const api = 'https://sc.sckj123.com/api/';//https://sucheng.icebartech.com
module.exports = {
  //管理员
  ADMIN: {
    LOGINOUT: api + 'admin/user/logout',    // 登出接口
    LOGIN: api + 'admin/user/login',      //登录接口
    UPDUSERPWD: api + 'admin/user/updUserPWD', //重密码接口
  },
  LIST: {
    statistics: api + 'admin/statistics',
    //用户
    useExport: api + 'admin/mini/user/export',
    userPage: api + 'admin/mini/user/page',
    //轮播
    bannerPage: api + 'admin/banner/page',
    bannerSave: api + 'admin/banner/save',
    bannerDelete: api + 'admin/banner/',
    bannerByid: api + 'admin/banner/',
    //介绍
    pointUpdate:api+'admin/user/point/update',
    saveIntroduce:api+'admin/sys/',
    question:api+'admin/common/question',
    questionSave:api+'admin/common/question/save',
  },
  SYSTEM: {
    ADMINUPLOADFILE: api + 'base/sys/admin/getCOSUploadUrl',  // 获取阿里云上传链接
    UPLOADFILEBYCOS: api + 'base/sys/admin/getCOSUploadUrl',     // 获取腾讯云上传链接
    //字典
    LOADLIST: api + 'base/sys/app/loadDictionary',
    // 角色管理
    FINDAPPROLEBYPAGE: api + 'admin/role/findAppRoleByPage',   // 分页获取角色列表
    GETALLAPPPERMISSION: api + 'admin/role/getAllAppPermission',  // 获取所有权限列表
    GETROLEINFOBYID: api + 'admin/role/getRoleInfoByRoleId',   // 获取角色详情
    DELETEROLEBYID: api + 'admin/role/deleteRoleByRoleId',   // 删除角色记录
    SAVEAPPROLE: api + 'admin/role/saveAppRole',   // 保存角色
    // 管理员
    FINDUSERPERMISSIONS: api + 'admin/user/findUserPermissions',     // 获取用户拥有的左侧菜单权限
    FINDADMINUSERBYPAGE: api + 'admin/user/findAdminUserByPage',   //  分页获取用户列表
    FINDADMINUSERDETAILBYUSERID: api + 'admin/user/findAdminUserDetailByUserId',   // 用户详情
    SAVEADMINUSER: api + 'admin/user/saveAdminUser',    // 保存用户
    DELETEADMINUSERBYID: api + 'admin/user/deleteAdminUserByUserId',     // 删除
    ruleSave: api+"admin/sys/recommendActivityRule",
    ruleDetail: api+"admin/sys/recommendActivityRule",
    telSave :api+"admin/sys/consumerHotline",
    telDetail: api+"admin/sys/consumerHotline"
  },

  BUILDING: {
    box: api+"admin/office/building/box",
    list: api+"admin/office/building/page",
    save: api+"admin/office/building/save",
    del: api+"admin/office/building",
    detail: api+"admin/office/building/",
  },
  ROOM: {
    list: api+"admin/office/room/page",
    save: api+"admin/office/room/save",
    del: api+"admin/office/room",
    detail: api+"admin/office/room/",
    recommend:api+"/admin/office/room",
    shelf:api+"admin/office/room"
  },
  SIGN: {
    list: api+"admin/office/room/signing/page",
    save: api+"admin/office/room/signing/save",
    del: api+"admin/office/room/signing/",
    detail: api+"admin/office/room/signing/"
  },
  RECOMMEND: {
    list: api+"admin/user/recommend/page",
    detail: api+"admin/user/recommend/",
    award: api+"admin/user/recommend/"
  },
  ORDER: {
    visit: api+"admin/visit/house/booking/deal",
    visitList:api+"admin/visit/house/booking/page",
    consult :api+"admin/consult/booking/deal",
    consultList :api+"admin/consult/booking/page"
  }
}
